<%@ page import="service.ElectrocarService" %>
<%@ page import="service.impl.ElectrocarServiceImpl" %>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%
    int id = Integer.parseInt(request.getParameter("id"));
    ElectrocarService electrocarService = new ElectrocarServiceImpl();
    if (electrocarService.delete(id)){
        request.getRequestDispatcher("ListPage.jsp").forward(request,response);
    }else{
        request.getRequestDispatcher("ListPage.jsp").forward(request,response);
    }
%>
